export default {
    url: "/bpm/sync/sync",
    method: "POST",
    name: "同步用户及组织架构",
    desc:"在用户或组织架构发生改变时，应定时同步该控件上的数据，此处传递的bpm-token为服务端sync-token当中的配置，而不是通过登录接口获取",
    req: [
        {
            "en": "user",
            "cn": "原系统用户资料",
            "type": "object[]",
            children: [
                {en:"id", cn: "原系统用户ID"},
                {en:"username", cn: "原系统用户名"},
                {en:"password", cn: "原系统用户密码"},
                {en:"su", cn: "是否超级管理员"},
                {en:"true_name", cn: "用户真实姓名"},
                {en:"phone", cn: "用户手机号"},
            ],
        },
        {
            "en": "dep",
            "cn": "原系统部门信息",
            "type": "object[]",
            children: [
                {en: "id", cn: "部门ID"},
                {en: "name", cn: "部门名"},
                {en: "pid", cn: "上级部门ID"},
                {en: "sort", cn: "部门排序", type: "int"},
            ]
        },
        {
            "en": "role",
            "cn": "原系统角色信息",
            "type": "object[]",
            children: [
                {en: "id", cn: "角色ID"},
                {en: "name", cn: "角色名"},
                {en: "pid", cn: "角色父ID，此处传null即可"},
                {en: "sort", cn: "角色排序", type: "int"},
            ]
        },
        {
            en: "user_dep",
            cn: "用户和部门对照关系",
            type: "object[]",
            children: [
                {en: "id", cn: "部门ID"},
                {en: "uid", cn: "用户ID"},
                {en: "type", cn: "对照关系：DEP为部门用户，MANAGER为部门主管, TOP_MANAGER0为部门上级主管, TOP_MANAGER1为部门上级分管"},
            ]
        },
        {
            en: "user_role",
            cn: "用户和角色对照关系",
            type: "object[]",
            children: [
                {en: "id", cn: "角色ID"},
                {en: "uid", cn: "用户ID"},
                {en: "type", cn: "此处传ROLE即可"},
            ]
        },
    ],
    reqEg: {"user":[{"id":"193","username":"0068060","password":"2","su":0,"true_name":"晏*祥","phone":"15811112346"},{"id":"197","username":"0049758","password":"2","su":0,"true_name":"刘*文","phone":"15811112350"},{"id":"200","username":"hzgg033","password":"2","su":0,"true_name":"蔡*淳","phone":"15811112353"},{"id":"205","username":"hzgg007","password":"2","su":0,"true_name":"邱*全","phone":"15811112358"},{"id":"215","username":"hzgg016","password":"2","su":0,"true_name":"李*宇","phone":"15811112368"},{"id":"218","username":"hzgg018","password":"2","su":0,"true_name":"廖*华","phone":"15811112371"},{"id":"202","username":"0021828","password":"2","su":0,"true_name":"陈*姗","phone":"15811112355"},{"id":"203","username":"0024735","password":"2","su":0,"true_name":"官*辉","phone":"15811112356"},{"id":"207","username":"hzgg009","password":"2","su":0,"true_name":"杨*帆","phone":"15811112360"}],"dep":[{"id":"329","name":"水口支行水东分理处","pid":"246","sort":0},{"id":"330","name":"水口支行龙湖分理处","pid":"246","sort":0},{"id":"336","name":"水口支行龙津分理处","pid":"246","sort":0},{"id":"340","name":"水口支行新乐分理处","pid":"246","sort":0},{"id":"250","name":"中心支行","pid":"222","sort":135},{"id":"242","name":"中心支行市场部","pid":"250","sort":0},{"id":"251","name":"中心支行综合部","pid":"250","sort":0},{"id":"252","name":"中心支行风险部","pid":"250","sort":0},{"id":"269","name":"中心支行营业部","pid":"250","sort":0}],"user_dep":[{"id":"245","uid":"570","type":"DEP"},{"id":"222","uid":"1069519273849782272","type":"DEP"},{"id":"222","uid":"193","type":"DEP"},{"id":"222","uid":"1069519488812056576","type":"DEP"},{"id":"222","uid":"1069519642747207680","type":"DEP"},{"id":"222","uid":"194","type":"DEP"},{"id":"222","uid":"197","type":"DEP"},{"id":"222","uid":"198","type":"DEP"},{"id":"222","uid":"195","type":"DEP"}],"role":[{"id":"1207200854181023744","name":"主服务管理员","pid":null,"sort":4},{"id":"1207200889891328000","name":"流程服务管理员","pid":null,"sort":0},{"id":"1207200918920105984","name":"信贷档案服务管理员","pid":null,"sort":0},{"id":"1125959918252195840","name":"总行企查查风险角色","pid":null,"sort":100},{"id":"2000006","name":"不良管理委员会委员","pid":null,"sort":0},{"id":"2000007","name":"基础角色","pid":null,"sort":0},{"id":"2100000","name":"报表","pid":null,"sort":0},{"id":"1059767604954005504","name":"系统管理员","pid":null,"sort":0},{"id":"1060026212534976512","name":"总行角色","pid":null,"sort":0}],"user_role":[{"id":"1207200854181023744","uid":"1207205496608522240","type":"ROLE"},{"id":"1207200889891328000","uid":"1207205594759430144","type":"ROLE"},{"id":"1207200918920105984","uid":"1207205773457752064","type":"ROLE"},{"id":"1125959918252195840","uid":"1","type":"ROLE"},{"id":"1125959918252195840","uid":"260","type":"ROLE"},{"id":"1125959918252195840","uid":"261","type":"ROLE"},{"id":"1125959918252195840","uid":"262","type":"ROLE"},{"id":"1125959918252195840","uid":"264","type":"ROLE"},{"id":"1125959918252195840","uid":"265","type":"ROLE"}]}
}